package com.ychen.service;

import com.ychen.entity.Admin;
import com.ychen.repository.AdminRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class AdminService {

    @Autowired
    private AdminRepository adminRepository;

    /**
     * 查询所有用户
     * @return
     */
    public List<Admin> findAll() {
        return adminRepository.findAll();
    }
}
